package club.janna.hello.dao;


import club.janna.hello.model.ChannelModel;

import java.util.Collection;

public abstract class AbstractChannelDao {
	
	/**
	 * 通过channel 删除
	 * @param channel
	 */
	public abstract void delete(ChannelModel channel);
	
	/**
	 * 获取当前所有活动的channel
	 * @return
	 */
	public abstract Collection<ChannelModel> getActiveChannels();
	
	/**
	 * 更新
	 * @param channel
	 */
	public abstract void update(ChannelModel channel);
	
	/**
	 * 新增
	 * @param channel
	 * @return
	 */
	public abstract String doCreate(ChannelModel channel);
	
	/**
	 * 通过id获取
	 * @param id
	 * @return
	 */
	public abstract ChannelModel doReadChannel(String id);
}
